import service from '@/utils/request'

// @Tags UserGoods
// @Summary 创建UserGoods
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoods true "创建UserGoods"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoods/createUserGoods [post]
export const createUserGoods = (data) => {
     return service({
         url: "/userGoods/createUserGoods",
         method: 'post',
         data
     })
 }


// @Tags UserGoods
// @Summary 删除UserGoods
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoods true "删除UserGoods"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoods/deleteUserGoods [delete]
 export const deleteUserGoods = (data) => {
     return service({
         url: "/userGoods/deleteUserGoods",
         method: 'delete',
         data
     })
 }

// @Tags UserGoods
// @Summary 删除UserGoods
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserGoods"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoods/deleteUserGoods [delete]
 export const deleteUserGoodsByIds = (data) => {
     return service({
         url: "/userGoods/deleteUserGoodsByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserGoods
// @Summary 更新UserGoods
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoods true "更新UserGoods"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userGoods/updateUserGoods [put]
 export const updateUserGoods = (data) => {
     return service({
         url: "/userGoods/updateUserGoods",
         method: 'put',
         data
     })
 }


// @Tags UserGoods
// @Summary 用id查询UserGoods
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoods true "用id查询UserGoods"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userGoods/findUserGoods [get]
 export const findUserGoods = (params) => {
     return service({
         url: "/userGoods/findUserGoods",
         method: 'get',
         params
     })
 }


// @Tags UserGoods
// @Summary 分页获取UserGoods列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserGoods列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoods/getUserGoodsList [get]
 export const getUserGoodsList = (params) => {
     return service({
         url: "/userGoods/getUserGoodsList",
         method: 'get',
         params
     })
 }